package com.maliankeji.mybatisflexdemo.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

@Data
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("返回对象")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Result implements Serializable {
    /**
     * 状态码
     */
    @ApiModelProperty("状态码")
    private String code;

    /**
     * 返回消息
     */
    @ApiModelProperty("返回消息")
    private String message;

    /**
     * 返回对象
     */
    @ApiModelProperty("返回对象")
    private Object data;
}
